package com.wang.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {

    private Integer resultCode;
    private String resultDesc;
    private T resultData;

    public CommonResult(Integer resultCode,String resultDesc){
        this.resultCode = resultCode;
        this.resultDesc = resultDesc;
    }
}
